Skip to content

Conversation

@kdaily
Copy link
Member

@kdaily kdaily commented Jun 13, 2025

Issue #, if available:

This change is targeting the cli-accessibility feature branch.

Description of changes:

Adjust table output for aws configure list command to remove ASCII art formatting.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kdaily kdaily force-pushed the configure-list-table-accessibility branch from 64b42e2 to 0732afd Compare June 13, 2025 16:54
@kdaily kdaily force-pushed the cli-accessibility branch from e0f7597 to c522dbd Compare June 18, 2025 16:37
@kdaily kdaily marked this pull request as draft June 19, 2025 20:06
@kdaily kdaily force-pushed the configure-list-table-accessibility branch from 0732afd to 31722f9 Compare June 20, 2025 15:50
@kdaily kdaily marked this pull request as ready for review July 9, 2025 21:19
@kdaily kdaily requested a review from aemous September 17, 2025 21:16
Copy link
Contributor

@aemous aemous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Would like to see a new-change entry either before this gets merged or before the feature branch gets merged, for each accessibility feature we're releasing.

@kdaily
Copy link
Member Author

kdaily commented Sep 19, 2025

Sounds good for changelogs. I was planning to do that in the feature branch.

@kdaily kdaily merged commit 7d23b9e into aws:cli-accessibility Sep 19, 2025
59 of 60 checks passed
doshitan added a commit to navapbc/template-infra that referenced this pull request Oct 6, 2025
A recent change in the AWS CLI[1] updates the output formatting of `aws
configure list`, which breaks the `bin/current-region` script.

In pre-2.31.0 versions the output is:
```
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************ABCD      config_file    ~/.aws/config
secret_key     ****************ABCD      config_file    ~/.aws/config
    region                us-west-2              env    AWS_DEFAULT_REGION
```

In 2.31.0+ versions the output is:
```
NAME       : VALUE                    : TYPE             : LOCATION
profile    : <not set>                : None             : None
access_key : ****************ABCD     : config_file      : ~/.aws/config
secret_key : ****************ABCD     : config_file      : ~/.aws/config
region     : us-west-2                : env              : AWS_DEFAULT_REGION
```

As `aws configure list` does not respect the `--output` flag[2], handle both
formats for now to avoid forcing everyone onto a pre or post 2.31.0 version.

[1] aws/aws-cli#9547
[2] aws/aws-cli#7373 (which in title is for the `aws
configure list-profiles` command, but is also relevant to the `aws configure
list` command and likely any fix there would apply to both)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants